go/types.Checker.pkg (field)
56 uses
go/types (current package)
assignments.go#L208: if w, _ := obj.(*Var); w != nil && w.pkg == check.pkg {
assignments.go#L572: obj := newVar(LocalVar, ident.Pos(), check.pkg, name, nil)
assignments.go#L583: lhsVars[i] = newVar(LocalVar, lhs[i].Pos(), check.pkg, "_", nil)
builtins.go#L765: obj, index, indirect := lookupFieldOrMethod(base, false, check.pkg, sel, false)
builtins.go#L1076: tpar := NewTypeName(nopos, check.pkg, tp.obj.name, nil)
call.go#L98: params = []*Var{NewParam(x.Pos(), check.pkg, "", gsig)}
call.go#L165: check.mono.recordInstance(check.pkg, pos, tparams, targs, xlist)
call.go#L690: assert(pname.pkg == check.pkg)
call.go#L815: obj, index, indirect = lookupFieldOrMethod(x.typ, x.mode == variable, check.pkg, sel, false)
call.go#L841: alt, _, _ := lookupFieldOrMethod(x.typ, x.mode == variable, check.pkg, sel, true)
call.go#L950: if m := mset.Lookup(check.pkg, sel); m == nil || m.obj != obj {
call.go#L1028: if w, _ := obj.(*Var); w != nil && w.pkg == check.pkg {
check.go#L162: pkg *Package
check.go#L321: pkg: pkg,
check.go#L355: pkg := check.pkg
check.go#L473: if check.pkg == Unsafe {
check.go#L546: check.pkg.goVersion = check.conf.GoVersion
check.go#L547: check.pkg.complete = true
decl.go#L218: isPkgObj := obj.Parent() == check.pkg.scope
decl.go#L545: if named == nil || named.obj.pkg == check.pkg || named.obj.pkg == nil {
decl.go#L752: tname := NewTypeName(name.Pos(), check.pkg, name.Name, nil)
decl.go#L885: pkg := check.pkg
errsupport.go#L55: if obj.Pkg() == check.pkg {
format.go#L126: if pkg != check.pkg {
format.go#L130: check.markImports(check.pkg)
initorder.go#L32: fmt.Printf("Computing initialization order for %s\n\n", check.pkg)
interface.go#L207: sig.recv = newVar(RecvVar, name.Pos(), check.pkg, "", recvTyp)
interface.go#L209: m := NewFunc(name.Pos(), check.pkg, name.Name, sig)
labels.go#L133: lbl := NewLabel(s.Label.Pos(), check.pkg, name)
literals.go#L183: i := fieldIndex(fields, check.pkg, key.Name, false)
literals.go#L186: if j := fieldIndex(fields, check.pkg, key.Name, true); j >= 0 {
literals.go#L218: if !fld.Exported() && fld.pkg != check.pkg {
mono.go#L148: qf := RelativeTo(check.pkg)
named.go#L599: if n.obj.pkg != check.pkg {
range.go#L114: obj = newVar(LocalVar, ident.Pos(), check.pkg, name, nil)
range.go#L122: obj = newVar(LocalVar, lhs.Pos(), check.pkg, "_", nil) // dummy variable
recording.go#L111: newVar(LocalVar, pos, check.pkg, "", t0),
recording.go#L112: newVar(LocalVar, pos, check.pkg, "", t1),
resolver.go#L117: if ident.Name == "main" && check.pkg.name == "main" {
resolver.go#L122: check.declare(check.pkg.scope, ident, obj, nopos)
resolver.go#L217: pkg := check.pkg
resolver.go#L410: if name == "init" || (name == "main" && check.pkg.name == "main") {
resolver.go#L561: obj := check.pkg.scope.Lookup(name.Name)
signature.go#L313: recv = newVar(RecvVar, rname.Pos(), check.pkg, rname.Name, recvType)
signature.go#L319: recv = newVar(RecvVar, rparam.Pos(), check.pkg, "", recvType)
signature.go#L404: par := newVar(kind, name.Pos(), check.pkg, name.Name, typ)
signature.go#L412: par := newVar(kind, ftype.Pos(), check.pkg, "", typ)
signature.go#L460: if T.obj.pkg != check.pkg || isCGoTypeObj(check.fset, T.obj) {
stmt.go#L757: obj := newVar(LocalVar, lhs.Pos(), check.pkg, lhs.Name, T)
struct.go#L95: fld := NewField(pos, check.pkg, name, typ, embedded)
typexpr.go#L56: if v, _ := obj.(*Var); v != nil && v.pkg == check.pkg /* see Checker.use1 */ {
typexpr.go#L74: if typ == nil || (gotType && wantType && obj.Pkg() == check.pkg) {
typexpr.go#L121: if obj.pkg == check.pkg {
typexpr.go#L495: check.mono.recordInstance(check.pkg, ix.Pos(), tparams, targs, ix.indices)
validtype.go#L129: assert(t.obj.pkg == check.pkg)
validtype.go#L130: assert(t.Origin().obj.pkg == check.pkg)